import java.util.Date;

public class DataTransaction {
	private int customerID;
	private String productCode;
	private String ipcClass;
	private String ipcLine;
	private int ipcClassDistinct;
	private Date purchaseDate;
	private int quantity;
	private String qtyUnit;
	private float netSales;
	private String salesChannel;
	private String engagementStatus;
	private String potentialClass;
	private String fleetUser;
	private boolean holUser;
	private String shipToTrade;
	private String visitFrequency;
	private int numberEmployees;
	private String shipToPostalCode;
	private String deletionFlag;
	private int territory;

	public DataTransaction(int customerID, String productCode, String ipcClass,
			String ipcLine, int ipcClassDistinct, Date purchaseDate,
			int quantity, String qtyUnit, float netSales, String salesChannel,
			String engagementStatus, String potentialClass, String fleetUser,
			Boolean holUser, String shipToTrade, String visitFrequency,
			int numberEmployees, String shipToPostalCode, String deletionFlag,
			int territory) {
		super();
		this.customerID = customerID;
		this.productCode = productCode;
		this.ipcClass = ipcClass;
		this.ipcLine = ipcLine;
		this.ipcClassDistinct = ipcClassDistinct;
		this.purchaseDate = purchaseDate;
		this.quantity = quantity;
		this.qtyUnit = qtyUnit;
		this.netSales = netSales;
		this.salesChannel = salesChannel;
		this.engagementStatus = engagementStatus;
		this.potentialClass = potentialClass;
		this.fleetUser = fleetUser;
		this.holUser = holUser;
		this.shipToTrade = shipToTrade;
		this.visitFrequency = visitFrequency;
		this.numberEmployees = numberEmployees;
		this.shipToPostalCode = shipToPostalCode;
		this.deletionFlag = deletionFlag;
		this.territory = territory;

		ContainerTransaction.getInstance().getTransactionList().add(this);
	}

	public String toString() { 
		return "customerID: " + customerID + " productCode: " + productCode
				+ " purchaseDate: " + CSVImporter.sdf.format(purchaseDate) + " quantity: " + quantity
				+ " fleetUser: " + fleetUser;
	}

}
